﻿using Furion;

namespace ZeroAdmin.Core;

/// <summary>
/// 系统用户
/// </summary>
public static class UserManager
{
    /// <summary>
    /// 用户ID
    /// </summary>
    public static string? UserId => App.User?.FindFirst(ClaimConst.UserId)?.Value;

    /// <summary>
    /// 手机号码
    /// </summary>
    public static string? PhoneNumber => App.User?.FindFirst(ClaimConst.PhoneNumber)?.Value;

    /// <summary>
    /// 所属用户ID
    /// </summary>
    public static string? OwnerUserId => App.User?.FindFirst(ClaimConst.OwnerUserId)?.Value;
}
